package com.proxy.scanandcheck.scaner.valueobject;

import java.io.Serializable;
import java.util.Date;

public class IpAddress implements Serializable{

	private static final long serialVersionUID = 7762206742744327574L;
	private String address;
	private int port;
	private String ipClass;
	private Date updateTime;
	
	private boolean isValid = false;
	
	public IpAddress(String address, int port, String ipClass)
	{
		this.address = address;
		this.port = port;
		this.ipClass = ipClass;
	}
	
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public int getPort() {
		return port;
	}
	public void setPort(int port) {
		this.port = port;
	}
	public String getIpClass() {
		return ipClass;
	}
	public void setIpClass(String ipClass) {
		this.ipClass = ipClass;
	}

	public boolean isValid() {
//		return true;
		return isValid;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public void setValid(boolean isValid) {
		this.isValid = isValid;
	}

	public String toString() {
		return address + ":" + port;
	}
	
}
